# -*- coding: utf-8 -*-            
# @Author : chenliang
# @Time : 2024/1/19 11:12

class  MenuName:

    # 产品菜单名称
    compute_name = {'hotfix': 'Compute', 'sit': 'Computing', 'BOLPRE': 'Compute'}
    block_name = {'hotfix': 'Block Storage-yun0122', 'sit': 'Block Storage', 'BOLPRE': 'Block Storage'}

    # 配置链接
    forbidden_data = {'hotfix': 'https://one.console.tbres.telkomsigma.co.id/ascm/vpc/eipPage1','sit':'https://one.console.tbres.telkomsigma.co.id/ascm/vpc/eipPage1','BOLPRE':'https://one.console.tbres.telkomsigma.co.id/ascm/vpc/eipPage1'}
    # 创建VM时，每1MB容量所需金额
    sum_of_money_mb = {'hotfix': '1','sit':1,'BOLPRE':1}
    # 创建VM时，税比例
    tax = {'hotfix': 0.11, 'sit': 0.1, 'BOLPRE': 0.11}
    # 时间选择，特定的时间
    select_time = {'hotfix': '2024-03-04','sit':'2024-03-04','BOLPRE':'2024-03-04'}

    """
     下载配置
    """
    #download_path = {'hotfix': '', 'sit': '/Users/chenliang/Downloads/'}
    download_path = {'hotfix': '/home/seluser/Downloads/', 'sit': '/home/seluser/Downloads/', 'BOLPRE': '/home/seluser/Downloads/'}



    """
       sql
    """
    # 根据所在地区查询network可创建数量
    search_network_create_num = "select limit_count from vm_network_limit_cfg where vcenter_id in (select id from vm_vcenter a where a.name='@a');"
    # 根据币种查询total值
    search_total_by_settlement_currency = "select sum(gross_amount),sum(paid_amount),sum(gross_amount-paid_amount)  from bill_statement where currency='@a'"
    # 执行Ascm配置每日校验 ，生成new events事件
    update_job_info = "update job_info set trigger_next_time ='1' where job_desc ='Ascm配置每日校验'"

